package com.ror.java.se.thread;

public class Demo02 {
    public static void main(String[] args) {
        Thread t1 = new Thread(new MyRun());
        t1.start();
        Thread t2 = new Thread(new MyRun());
        t2.start();
    }

    private static class MyRun implements Runnable {
        @Override
        public void run() {
            for (int i = 0; i < 50; i++) {
                System.out.println(Thread.currentThread().getName() + ": " + "Hello, multithread!");
            }
        }
    }
}
